package com.ttx.pattern.example.decoration.after;

/**
 * @author TimFruit
 * @date 2019/5/22 18:06
 */

public class Client {
    public static void main(String[] args) {
        
        Component innerComponent=new ConcreteComponent();
        
        Component clientComponent1=new ConcreteDecorator1(new ConcreteDecorator2(innerComponent));
        clientComponent1.operate();



        Component clientComponent2=new ConcreteDecorator2(new ConcreteDecorator1(innerComponent));
        clientComponent2.operate();
        
        
        
    }
}
